import request from '@/config/axios'

// 新增五保一
export const addFiveGuauaranteesOne = (data: any) => {
  return request.post({ url: '/business/key-person-protection/create', data })
}
// 修改五保一信息
export const updateFiveGuauaranteesOne = (data: any) => {
  return request.post({ url: '/business/key-person-protection/update', data })
}
 // 删除五保一信息
export const deleteFiveGuauaranteesOne= (id: number) => {
     return request.delete({ url: `/business/key-person-protection/delete?id=` + id })
   }
// 五保一信息列表查询
export const getFiveGuauaranteesOne = (data: any) => {
  return request.post({ url: '/business/key-person-protection/page', data })
}

// 获得五保一信息详情
export const getFiveGuauaranteesOneDetail = async (id: string) => {
  return await request.get({ url: '/business/key-person-protection/get?id='+id})
}

// 导出五帮一模板
export const exportPost = async (params) => {
  return await request.download({ url: '/business/key-person-protection/export-excel', params })
}